import gtk
clipboard = gtk.clipboard_get()
text = clipboard.wait_for_image()
print text

